package com.express.basic.exception;

import com.express.basic.constant.ExpressConstant;

public class ExpressException  extends RuntimeException {
	
	
	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 1L;
	private String code;
	private String message;
	
	private Object Data;

	public ExpressException(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	
	public ExpressException(ExpressConstant.MsgCode msgCode) {
		super();
		this.code = msgCode.getCode();
		this.message = msgCode.getMessage();
	}
	

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return Data;
	}

	public void setData(Object data) {
		Data = data;
	}
	
	
	
	
}
